<?
$conn = mysql_connect('localhost', 'db', 'pwd');
mysql_query('set names utf8');
mysql_select_db('db', $conn);
?>